U.S. Treasury Secretary Janet Yellen called the agreement “once-in-a-generation accomplishment” for economic diplomacy.